<!--?xml version="1.0" encoding="utf-8"?-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
 <head>
  <title>dbMister</title>
  <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
  <meta http-equiv="content-language" content="cs" />
  <meta http-equiv="imagetoolbar" content="false" />
  <meta name="robots" content="index, follow">
  <meta name="author" content="Adam Motvička" />
  <link rel="stylesheet" type="text/css" media="screen" href="./templates/css/default.css" />
  <script type="text/javascript">
    var GB_ROOT_DIR = "<?=$config["dbmister"]["baseurl"]?>templates/greybox/";
  </script>
  <script type="text/javascript" src="./templates/greybox/AJS.js"></script>
  <script type="text/javascript" src="./templates/greybox/AJS_fx.js"></script>
  <script type="text/javascript" src="./templates/greybox/gb_scripts.js"></script>
  <link href="./templates/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
 </head>
<body>
    <h1>dbMister</h1>
    
    <div id="drobky">
        <select name="select_table" id="select_table" onchange="window.location.href = 'Table.php?table='+this.value">
            <option value="">Zvolte tabulku</option>
<? foreach ($tables as $t) { ?>
            <option value="<?=$t["name"]?>"<? if ($_GET["table"] == $t["name"]) { echo " selected"; $actual_table = $t["title"]; } ?>><? if (!empty($t["title"])) echo $t["title"]; else echo $t["name"]?></option>
<? } ?>
        </select>
        Navigace: <a href="ListTables.php">Seznam tabulek</a> <? if ($_REQUEST["table"]) { ?>&gt;&gt; Tabulka <? if (!empty($actual_table)) echo $actual_table; else echo $_GET["table"]?><? } ?>
    </div>
    <div id="container">
